package com.baizhi.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;

/**
 * 这个类就是替换applicationContext.xml文件的
 */
@Configuration //告诉Spring这是一个配置类
@ComponentScan("com.baizhi.mapper") //配置包扫描
@PropertySource("classpath:jdbc.properties")
@Import({DataSourceConfig.class,MyBatisConfig.class})
public class SpringConfig {
}
